﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace RBAC.Service.Util
{
    public static class StringParser
    {
        public static T GetValue<T>(String value)
        {
            try
            {
                return (T)Convert.ChangeType(value, typeof(T));
            }
            catch
            {
                return default(T);
            }
        }
    }
}